package com.ruoyi.dataroom.constant;

public interface DatasetConstant {
    public interface DatasetCache {
        Integer OPEN = 1;
        Integer CLOSE = 0;
    }

    public interface DataRepeat {
        Integer NOT_REPEAT = 1;
        Integer DEFAULT = 0;
    }

    public interface SqlParamsStatus {
        Integer DEFAULT = 0;
        Integer VARIABLE = 1;
    }

    public interface DataSetType {
        String CUSTOM = "custom";
        String ORIGINAL = "original";
        String SCRIPT = "script";
        String JSON = "json";
        String STORED_PROCEDURE = "storedProcedure";
        String JS = "js";
        String HTTP = "http";
    }

    public interface DatasourceType {
        String MYSQL = "mysql";
        String ORACLE = "oracle";
        String SQLSERVER = "sqlserver";
        String POSTGRESQL = "postgresql";
        String HIVE = "hive";
        String CLICKHOUSE = "clickhouse";
        String EXCEL = "excel";
    }

    public interface Permission {
        public interface Dataset {
            String VIEW = "dataset:view";
            String ADD = "dataset:add";
            String UPDATE = "dataset:update";
            String DELETE = "dataset:delete";
            String EXECUTE = "dataset:execute";
            String CATEGORY_VIEW = "dataset:category";
            String CATEGORY_EDIT = "dataset:category:edit";
            String LABEL_VIEW = "dataset:label";
            String LABEL_EDIT = "dataset:label:edit";
        }

        public interface Datasource {
            String VIEW = "datasource:view";
            String ADD = "datasource:add";
            String UPDATE = "datasource:update";
            String DELETE = "datasource:delete";
            String TEST = "datasource:test";
        }
    }

    public interface ScanPackage {
        String COMPONENT = "com.gccloud.dataset";
        String DAO = "com.gccloud.dataset.**.dao";
    }

    public interface SqlParamsType {
        String STRING = "String";
        String DATE = "Date";
        String INTEGER = "Integer";
        String LONG = "Long";
        String DOUBLE = "Double";
    }

    public interface SyntaxType {
        String NORMAL = "normal";
        String MYBATIS = "mybatis";
    }
}
